Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unified-latex/unified-latex-util-print-raw

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unified-latex/unified-latex-util-print-raw

Print a unified-latex AST with no fancy formatting

  • 1.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.4K
increased by49.87%
Maintainers
0
Weekly downloads
 
Created
Source

unified-latex-util-print-raw

What is this?

Functions to print a unified-latex Abstract Syntax Tree (AST) to a string.

When should I use this?

If you want to directly print an Ast.Ast to a string without any pretty printing or formatting.

Install

npm install @unified-latex/unified-latex-util-print-raw

This package contains both esm and commonjs exports. To explicitly access the esm export, import the .js file. To explicitly access the commonjs export, import the .cjs file.

Functions

printRaw(node, options)

Renders the AST to a string without any pretty printing.

function printRaw(
  node: Printable | Printable[],
  options: { asArray: false }
): string;

Parameters

ParamTypeDescription
nodePrintable | Printable[]
options{ asArray: false; }* Setting asArray to true will return an array of strings and the symbol linebreak, so that printing can be customized.

Constants

NameType
linebreakSymbol

Keywords

FAQs

Package last updated on 22 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc